package com.wqwy.zhnm.base.service.config;

import org.springframework.cache.CacheManager;
import org.springframework.cache.concurrent.ConcurrentMapCacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Configuration
public class CacheConfig {

	@Bean
    @Profile("prod")
    CacheManager cacheManager() {
      return new ConcurrentMapCacheManager();
    }
	
}
